//
//  RCDepartureAndArriveView.h
//  RocketProject
//
//  Created by chen jiedan on 13-9-3.
//  Copyright (c) 2013年 Rocket. All rights reserved.
//

#import <UIKit/UIKit.h>



typedef enum {
    RCDepartureAndArriveViewType_RoundTripDes = 1,
//    RCDepartureAndArriveViewType_SingleTripDes= 2,
    RCDepartureAndArriveViewType_RoundTripTime= 3, //双程-出发时间和回来时间
    RCDepartureAndArriveViewType_SingleTripTime=4, //单程-出发时间
    RCDepartureAndArriveViewType_SeatTypeView=5, //飞机票：舱位类型
    RCDepartureAndArriveViewType_TrainTypeView=6 //火车票：车次类型、座型类别

} RCDepartureAndArriveViewType;

@protocol RCDepartureAndArriveViewClickProtocol <NSObject>

- (void)rcDepartureAndArriveViewClickAtSide:(NSInteger)side withState:(RCDepartureAndArriveViewType)type;//side = 0,1 表示左右

@end


@interface RCDepartureAndArriveView : UIView


@property (nonatomic, copy) NSString *leftValue;
@property (nonatomic, copy) NSString *rightValue;

- (id)initWithFrame:(CGRect)frame andType:(RCDepartureAndArriveViewType)type;
- (void) changeToMode:(RCDepartureAndArriveViewType )type;


- (void) setLeft:(NSString *)leftName withLeftID:(NSString *)leftID;
- (void) setRight:(NSString *)rightName withRightID:(NSString *)rightID;
- (NSString *)leftStr;
- (NSString *)rightStr;


@property (nonatomic, assign) id<RCDepartureAndArriveViewClickProtocol> delegate;

@end
